package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Administrator on 2018/2/1 0001.
 */

public class ConfigInfo implements Parcelable {



   private String privacy_url;
   private String agreement_ur;
   private String floating_ur;
   private Popup activity_popup;
   private String box_name;
   private String box_logo;
   private String box_promote_url;
   private int mobile_countdown;
   private List<NavModel> nav_list;
    private ExitPopup game_exit;
    private NoticePopup notice_popup;
    private String device_code;

    public String getDevice_code() {
        return device_code;
    }

    public void setDevice_code(String device_code) {
        this.device_code = device_code;
    }

    public NoticePopup getNotice_popup() {
        return notice_popup;
    }

    public void setNotice_popup(NoticePopup notice_popup) {
        this.notice_popup = notice_popup;
    }

    public List<NavModel> getNav_list() {
        return nav_list;
    }

    public void setNav_list(List<NavModel> nav_list) {
        this.nav_list = nav_list;
    }

    public ExitPopup getGame_exit() {
        return game_exit;
    }

    public void setGame_exit(ExitPopup game_exit) {
        this.game_exit = game_exit;
    }

    public String getPrivacy_url() {
        return privacy_url;
    }

    public void setPrivacy_url(String privacy_url) {
        this.privacy_url = privacy_url;
    }

    public String getAgreement_ur() {
        return agreement_ur;
    }

    public void setAgreement_ur(String agreement_ur) {
        this.agreement_ur = agreement_ur;
    }

    public String getFloating_ur() {
        return floating_ur;
    }

    public void setFloating_ur(String floating_ur) {
        this.floating_ur = floating_ur;
    }

    public Popup getActivity_popup() {
        return activity_popup;
    }

    public void setActivity_popup(Popup activity_popup) {
        this.activity_popup = activity_popup;
    }

    public String getBox_name() {
        return box_name;
    }

    public void setBox_name(String box_name) {
        this.box_name = box_name;
    }

    public String getBox_logo() {
        return box_logo;
    }

    public void setBox_logo(String box_logo) {
        this.box_logo = box_logo;
    }

    public String getBox_promote_url() {
        return box_promote_url;
    }

    public void setBox_promote_url(String box_promote_url) {
        this.box_promote_url = box_promote_url;
    }

    public ConfigInfo() {
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {

        dest.writeParcelable(this.activity_popup, flags);
        dest.writeString(this.privacy_url);
        dest.writeString(this.agreement_ur);
        dest.writeString(this.floating_ur);
        dest.writeString(this.box_name);
        dest.writeString(this.box_logo);
        dest.writeString(this.box_promote_url);
        dest.writeInt(this.mobile_countdown);
        dest.writeTypedList(this.nav_list);
        dest.writeParcelable(this.game_exit,flags);
        dest.writeParcelable(this.notice_popup,flags);
        dest.writeString(this.device_code);

    }

    protected ConfigInfo(Parcel in) {
        this.activity_popup = in.readParcelable(Popup.class.getClassLoader());
        this.privacy_url = in.readString();
        this.agreement_ur = in.readString();
        this.floating_ur = in.readString();
        this.box_name = in.readString();
        this.box_logo = in.readString();
        this.box_promote_url = in.readString();
        this.mobile_countdown = in.readInt();
        this.nav_list= in.createTypedArrayList(NavModel.CREATOR);
        this.game_exit = in.readParcelable(ExitPopup.class.getClassLoader());
        this.notice_popup = in.readParcelable(NoticePopup.class.getClassLoader());
        this.device_code = in.readString();
    }

    public int getMobile_countdown() {
        return mobile_countdown;
    }

    public void setMobile_countdown(int mobile_countdown) {
        this.mobile_countdown = mobile_countdown;
    }

    public static final Creator<ConfigInfo> CREATOR = new Creator<ConfigInfo>() {
        @Override
        public ConfigInfo createFromParcel(Parcel source) {
            return new ConfigInfo(source);
        }

        @Override
        public ConfigInfo[] newArray(int size) {
            return new ConfigInfo[size];
        }
    };
}
